﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace SuperQuiz.Model
{
    public class QuizResults : BindableBase
    {
        private ObservableCollection<QuizResultItem> _Items = new ObservableCollection<QuizResultItem>();
        public ObservableCollection<QuizResultItem> Items
        {
            get { return this._Items; }
            set { this.SetProperty(ref this._Items, value); }
        }

        private int _FinalScore;
        public int FinalScore
        {
            get { return this._FinalScore; }
            set { this.SetProperty(ref this._FinalScore, value); }
        }

        private Quiz _Quiz;
        [IgnoreDataMember]
        public Quiz Quiz
        {
            get { return this._Quiz; }
            set { this.SetProperty(ref this._Quiz, value); }
        }

        private string _PlayerName;
        public string PlayerName
        {
            get { return this._PlayerName; }
            set { this.SetProperty(ref this._PlayerName, value); }
        }

        private DateTime _DatePlayed;
        public DateTime DatePlayed
        {
            get { return this._DatePlayed; }
            set { this.SetProperty(ref this._DatePlayed, value); }
        }

        private bool _ScoreSaved;
        public bool ScoreSaved
        {
            get { return this._ScoreSaved; }
            set { this.SetProperty(ref this._ScoreSaved, value); }
        }
    }
}
